import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

///
/// @DIR_PATH：lib/utils
/// @TIME：2023/11/9 22:00
/// @AUTHOR：starr
/// 吐司工具类
///

class ToastUtils {
  static void showToast(String msg) {
    //如果已经显示，则取消
    Fluttertoast.cancel();
    //显示
    Fluttertoast.showToast(
        msg: msg,
        backgroundColor: Colors.black54,
        gravity: ToastGravity.CENTER);
  }
}
